<%@ page import="期中22.Pd" %>
<%@ page import="期中22.Thesql" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>校园社团活动管理系统</title>
	<style type="text/css">
	div {margin: 200px 600px;}
   	p {display: inline;}
   	h2 {text-align: center;
       color: blue;}
	</style>
</head>
<body>
<%
	int tid=-1;
  	try{
		
		tid=Integer.parseInt(request.getParameter("tid")+"");
  	}
  	catch(Exception e) {
  		e.printStackTrace();
  	}
  	
  	
  	
	out.print(tid);
	Thesql the=new Thesql();
	Pd pdd=the.show(tid);
%>
<div>
		<h2>原信息</h2>
		<p>活动主题</p><%out.print("   "+pdd.zhuti); %><br>
		<p>活动目的</p><%out.print("   "+pdd.mudi); %><br>
		<p>活动类型</p>
<%		switch(pdd.leixing){
			case 1:out.print("   社团竞赛");break;
			case 2:out.print("   野外采风");break;
			case 3:out.print("   校内集会");break;
			case 4:out.print("   社团纳新");break;
}	
%><br>
		<p>活动时间</p><%out.print("   "+pdd.shijian); %><br>
		<p>活动地点</p><%out.print("   "+pdd.didian); %><br>
		<p>活动对象</p>
<%
		if(pdd.duixiang1==1)
			out.print("   社团成员"); 
		if(pdd.duixiang2==1)
			out.print("   全体学生"); 
%><br>
		<p>活动内容</p><%out.print("   "+pdd.neirong); %><br>
		<p>活动日程安排</p><%out.print("   "+pdd.anpai); %><br>
</div>





















<div>

<table border="1" width="400" cellspacing="0">
           <caption>结果</caption>
     <tr>
           <th>主题</th>
           <th>时间</th>
           <th>地点</th>
           <th>类型</th>
    </tr>
   <%int x=1; %>
    <tr>
           <td><% out.print(x);%></td>
           <td><% out.print(x);%></td>
           <td><% out.print(x);%></td>
   </tr>
</table>




